var app = angular.module('todo', ['ionic']);
app.config(function($stateProvider) {
	$stateProvider
		.state("home", {
			templateUrl: "/home.html"
		})
		.state("chat", {
			templateUrl: "/Chat.html"
		}).state("class", {
			templateUrl: "class.html"
		});
});
app.controller('TodoCtrl', function($scope) {
	$scope.usn = "abc";
	$scope.pwd = "123456";
	$scope.onLogin = function() {
		if($scope.usn=="abc"&&$scope.pwd=="123456"){
			alert("login success!");
		}else{
			alert("login failed!");
			alert("default username and password is 'abc' and '123456'");
		}
	};
});